USE [fKanban]
GO

/****** Object:  Table [dbo].[tbTask]    Script Date: 11/02/2011 15:48:31 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[tbTask](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[GoalId] [int] NOT NULL,
	[SprintId] [int] NOT NULL,
	[UserStoryId] [int] NOT NULL,
	[DashboardId] [int] NOT NULL,
	[Name] [nvarchar](20) NOT NULL,
	[Description] [nvarchar](20) NOT NULL,
	[Author] [nvarchar](20) NOT NULL,
	[Duration] [int] NOT NULL,
	[Status] [int] NOT NULL,
	[eColor] [int] NOT NULL,
	[eDegree] [int] NOT NULL,
PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[tbTask] ADD  DEFAULT ((0)) FOR [GoalId]
GO

ALTER TABLE [dbo].[tbTask] ADD  DEFAULT ((0)) FOR [SprintId]
GO

ALTER TABLE [dbo].[tbTask] ADD  DEFAULT ((0)) FOR [UserStoryId]
GO

ALTER TABLE [dbo].[tbTask] ADD  DEFAULT ((0)) FOR [DashboardId]
GO

ALTER TABLE [dbo].[tbTask] ADD  DEFAULT ('') FOR [Name]
GO

ALTER TABLE [dbo].[tbTask] ADD  DEFAULT ('') FOR [Description]
GO

ALTER TABLE [dbo].[tbTask] ADD  DEFAULT ('') FOR [Author]
GO

ALTER TABLE [dbo].[tbTask] ADD  DEFAULT ((0)) FOR [Duration]
GO

ALTER TABLE [dbo].[tbTask] ADD  DEFAULT ((0)) FOR [Status]
GO

ALTER TABLE [dbo].[tbTask] ADD  DEFAULT ((0)) FOR [eColor]
GO

ALTER TABLE [dbo].[tbTask] ADD  DEFAULT ((0)) FOR [eDegree]
GO


